#include "StdAfx.h"
#include "Edge.h"

namespace catan
{
	Edge::Edge(void)
	{
	}
	
	Edge::~Edge(void)
	{
	}

	void Edge::AddBuildPoint( Handle<BuildPoint> buildPoint )
	{
		mBuildPoints.push_back(buildPoint);
		assert(mBuildPoints.size() <= 2);
	}

	Handle<BuildPoint> Edge::GetOtherBuildPoint( Handle<BuildPoint> p )
	{
		return mBuildPoints[0] == p ? mBuildPoints[1] : mBuildPoints[0];
	}
}	